const app = getApp()
Component({
  properties: {
    // 这里定义了innerText属性，属性值可以在组件使用时指定
    innerTitle: {
      type: String,
      value: '头部标题'
    },
    type: {
      type: Number,
      value: 1
    },
    isShowBack: {
      type: String,
      value: "true"
    },
    isShowMenu: {
      type: String,
      value: "true"
    }
  },
  data: {
    // 这里是一些组件内部数据
    someData: {
      // statusBarHeight: app.globalData.statusBarHeight,
      // titleBarHeight: app.globalData.titleBarHeight
    },
    isFix: false,//右侧列表是否显示      
  },
  methods: {
    redirectToSearch:function(){
      if(this.data.type == 1) {
        wx.navigateTo({
          url: '/pages/video/search',
        })
      } else {
        wx.navigateTo({
          url: '/pages/active/search',
        })
      }
    },
    redirectToMine:function(){
      wx.navigateTo({
        url: '/pages/mine/mine',
      })
    }
  }
})